package priv.mill.controller;

import java.io.IOException;
import java.util.Date;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.alibaba.fastjson.JSON;

import priv.mill.util.JdbcUtil;
import priv.mill.util.ResultObject;
public class ShoppUpdatazongnumHandler extends HttpServlet{

	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		try {
				ResultObject setMsg = ResultObject.getResult().setStatus(true).setMsg("");
			Integer result = JdbcUtil.excute("update ee_shopp set e_zongnumber=? where e_id=?",
					req.getParameter("e_zongnumber"),
					req.getParameter("id")
						);
			resp.getWriter().print(JSON.toJSONString(setMsg));
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		}
	}

	
	
}